How to plot gas phase diagram